package com.peace.hospital.opdept.service.outpatientdept.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peace.hospital.entity.outpatientdept.Patientinformation;
import com.peace.hospital.entity.outpatientdept.dto.RegisteredEnquiryDto;
import com.peace.hospital.opdept.mapper.outpatientdept.PatientinformationMapper;
import com.peace.hospital.opdept.service.outpatientdept.IPatientinformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Date;
import java.util.List;

/**
 * <p>
 * 挂号信息表 服务实现类
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Service
public class PatientinformationServiceImpl extends ServiceImpl<PatientinformationMapper, Patientinformation> implements IPatientinformationService {
    @Autowired
    private PatientinformationMapper patientinformationMapper;
    @Override
    public Patientinformation selectPatientinformationOne(Patientinformation patientinformation) {
        return patientinformationMapper.selectPatientinformationOne(patientinformation);
    }

    @Override
    public Integer addPatientinformation(Patientinformation patientinformation) {
        return patientinformationMapper.addPatientinformation(patientinformation);
    }

    @Override
    public int updatePatientinformationById(Integer pid) {
        return patientinformationMapper.updatePatientinformationById(pid);
    }

    @Override
    public List<RegisteredEnquiryDto> selectPeopleRegisterByDate(Patientinformation patientinformation) {
        return patientinformationMapper.selectPeopleRegisterByDate(patientinformation);
    }

    @Override
    public Patientinformation selectPatientinformationByPid(Integer pid) {
        return patientinformationMapper.selectPatientinformationByPid(pid);
    }
}
